import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login.vue'
import Profile from '@/components/Profile.vue'
import ShopList from "../components/ShopList";
import ShopMap from "../components/ShopMap";
import OrderItem from "../components/OrderItem";
import ConsumerOrder from "../components/ConsumerOrder";
import FoodList from "../components/FoodList";
import Cart from "../components/Cart";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '登录',
      component: Login,
      meta:{
        doNotshowCommonHeader:true
      }
    },
    {
      path: '/profile',
      name: '个人信息',
      component: Profile
    },
    {
      path: '/orderItem',
      name: '订单详情',
      component: OrderItem
    },
    {
      path: '/shopList',
      name: '商铺列表',
      component: ShopList
    },
    {
      path: '/shopMap/:sid',
      name: '商铺地图',
      component: ShopMap
    },
    {
      path: '/consumerOrder',
      name: '订单',
      component: ConsumerOrder
    },
    {
      path: '/foodList/:sid',
      name: '订单',
      component: FoodList
    },
    {
      path: '/cart',
      name: '购物车',
      component: Cart
    }
  ]
})
